package cn.dataling.ai.common;


/**
 * @coder taoym
 * @datetime 2021/10/4 17:56
 * @desc
 */
public enum ResponseStatusCodeEnum {

    SUCCESS("0000", "请求成功"),
    PARAMETER_VALIDATE_IS_FAIL("0002", "参数校验失败"),
    TRY_AGAIN_LATER("0003", "稍后再试"),
    CURRENT_TIMESTAMP_IS_WRONG("0004", "当前时间戳错误"),
    REQUEST_SOURCE_IS_NOT_LEGAL("0005", "请求源不合法"),
    REQUEST_TIMESTAMP_IS_EXPIRED("0006", "请求时间戳已过期"),
    OPEN_ID_GET_FAIL("0007", "openId获取失败"),
    SIGN_FAIL("0008", "签名失败"),
    FAIL("9999", "请求失败");

    private final String code;
    private final String msg;

    ResponseStatusCodeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
